{
	"format_version": "1.17",
	"minecraft:npc_dialogue": {
		"scenes": [
		    {
				"scene_tag": "stat_allocation",// ステ振り画面
				"npc_name": "§lSTAT ALLOCATION",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "§l＋１",
						"commands": [
							"function npc/vitality"
						]
					},
					{
						"name": "§l＋１",
						"commands": [
							"function npc/strength"
						]
					},
					{
						"name": "§l＋１",
						"commands": [
							"function npc/agility"
						]
					},
					{
						"name": "§l＋１",
						"commands": [
							"function npc/stamina"
						]
					},
					{
						"name": "§l＋１",
						"commands": [
							"function npc/intelligence"
						]
					}
					// {
					// 	"name": "close",
					// 	"commands": [
					// 		"tag @s remove stay"
					// 	]
					// }
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_menu",// 魔法スロットメニュー画面
				"npc_name": "§l魔法スロット",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "変更する",
						"commands": [
							"dialogue open @s @initiator magic_slot_1_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					},
					{
						"name": "変更する",
						"commands": [
							"dialogue open @s @initiator magic_slot_2_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					},
					{
						"name": "変更する",
						"commands": [
							"dialogue open @s @initiator magic_slot_3_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					},
					{
						"name": "変更する",
						"commands": [
							"dialogue open @s @initiator magic_slot_4_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_1_fire",// 魔法スロット1-火属性
				"npc_name": "§l魔法スロット1を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.fire_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.fire_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.fire_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.fire_4"
						]
					},
					{
						"name": "次へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_1_earth",
							"event entity @s asa:magic_slot.earth",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_1_earth",// 魔法スロット1-地属性
				"npc_name": "§l魔法スロット1を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.earth_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.earth_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.earth_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.earth_4"
						]
					},
					// {
					// 	"name": "火属性へ",
					// 	"commands": [
					// 		"dialogue open @s @initiator magic_slot_1_fire",
					// 		"event entity @s asa:magic_slot.fire",
					// 		"tag @s add stay"
					// 	]
					// },
					{
						"name": "次へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_1_water",
							"event entity @s asa:magic_slot.water",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_1_water",// 魔法スロット1-水属性
				"npc_name": "§l魔法スロット1を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.water_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.water_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.water_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.water_4"
						]
					},
					// {
					// 	"name": "地属性へ",
					// 	"commands": [
					// 		"dialogue open @s @initiator magic_slot_1_earth",
					// 		"event entity @s asa:magic_slot.earth",
					// 		"tag @s add stay"
					// 	]
					// },
					{
						"name": "次へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_1_wind",
							"event entity @s asa:magic_slot.wind",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_1_wind",// 魔法スロット1-風属性
				"npc_name": "§l魔法スロット1を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.wind_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.wind_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.wind_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.wind_4"
						]
					},
					// {
					// 	"name": "水属性へ",
					// 	"commands": [
					// 		"dialogue open @s @initiator magic_slot_1_water",
					// 		"event entity @s asa:magic_slot.water",
					// 		"tag @s add stay"
					// 	]
					// },
					{
						"name": "次へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_1_other",
							"event entity @s asa:magic_slot.other",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_1_other",// 魔法スロット1-その他
				"npc_name": "§l魔法スロット1を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.empty"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.empty"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.empty"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_1.empty"
						]
					},
					{
						"name": "次へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_1_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_2_fire",// 魔法スロット2-火属性
				"npc_name": "§l魔法スロット2を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.fire_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.fire_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.fire_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.fire_4"
						]
					},
					{
						"name": "空",
						"commands": [
							"event entity @initiator magic_slot_2.empty"
						]
					},
					{
						"name": "地属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_2_earth",
							"event entity @s asa:magic_slot.earth",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_2_earth",// 魔法スロット2-地属性
				"npc_name": "§l魔法スロット2を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.earth_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.earth_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.earth_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.earth_4"
						]
					},
					{
						"name": "火属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_2_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					},
					{
						"name": "水属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_2_water",
							"event entity @s asa:magic_slot.water",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_2_water",// 魔法スロット2-水属性
				"npc_name": "§l魔法スロット2を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.water_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.water_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.water_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.water_4"
						]
					},
					{
						"name": "地属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_2_earth",
							"event entity @s asa:magic_slot.earth",
							"tag @s add stay"
						]
					},
					{
						"name": "風属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_2_wind",
							"event entity @s asa:magic_slot.wind",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_2_wind",// 魔法スロット2-風属性
				"npc_name": "§l魔法スロット2を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.wind_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.wind_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.wind_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_2.wind_4"
						]
					},
					{
						"name": "水属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_2_water",
							"event entity @s asa:magic_slot.water",
							"tag @s add stay"
						]
					},
					{
						"name": "火属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_2_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_3_fire",// 魔法スロット3-火属性
				"npc_name": "§l魔法スロット3を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.fire_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.fire_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.fire_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.fire_4"
						]
					},
					{
						"name": "空",
						"commands": [
							"event entity @initiator magic_slot_3.empty"
						]
					},
					{
						"name": "地属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_3_earth",
							"event entity @s asa:magic_slot.earth",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_3_earth",// 魔法スロット3-地属性
				"npc_name": "§l魔法スロット3を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.earth_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.earth_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.earth_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.earth_4"
						]
					},
					{
						"name": "火属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_3_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					},
					{
						"name": "水属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_3_water",
							"event entity @s asa:magic_slot.water",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_3_water",// 魔法スロット3-水属性
				"npc_name": "§l魔法スロット3を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.water_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.water_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.water_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.water_4"
						]
					},
					{
						"name": "地属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_3_earth",
							"event entity @s asa:magic_slot.earth",
							"tag @s add stay"
						]
					},
					{
						"name": "風属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_3_wind",
							"event entity @s asa:magic_slot.wind",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_3_wind",// 魔法スロット3-風属性
				"npc_name": "§l魔法スロット3を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.wind_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.wind_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.wind_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_3.wind_4"
						]
					},
					{
						"name": "水属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_3_water",
							"event entity @s asa:magic_slot.water",
							"tag @s add stay"
						]
					},
					{
						"name": "火属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_3_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_4_fire",// 魔法スロット4-火属性
				"npc_name": "§l魔法スロット4を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.fire_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.fire_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.fire_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.fire_4"
						]
					},
					{
						"name": "空",
						"commands": [
							"event entity @initiator magic_slot_4.empty"
						]
					},
					{
						"name": "地属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_4_earth",
							"event entity @s asa:magic_slot.earth",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_4_earth",// 魔法スロット4-地属性
				"npc_name": "§l魔法スロット4を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.earth_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.earth_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.earth_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.earth_4"
						]
					},
					{
						"name": "火属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_4_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					},
					{
						"name": "水属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_4_water",
							"event entity @s asa:magic_slot.water",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_4_water",// 魔法スロット4-水属性
				"npc_name": "§l魔法スロット4を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.water_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.water_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.water_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.water_4"
						]
					},
					{
						"name": "地属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_4_earth",
							"event entity @s asa:magic_slot.earth",
							"tag @s add stay"
						]
					},
					{
						"name": "風属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_4_wind",
							"event entity @s asa:magic_slot.wind",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			},
			{
				"scene_tag": "magic_slot_4_wind",// 魔法スロット4-風属性
				"npc_name": "§l魔法スロット4を変更",
				"text": "",
				"on_open_commands": [ "tag @s remove stay" ],
				"buttons": [
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.wind_1"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.wind_2"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.wind_3"
						]
					},
					{
						"name": "決定",
						"commands": [
							"event entity @initiator magic_slot_4.wind_4"
						]
					},
					{
						"name": "水属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_4_water",
							"event entity @s asa:magic_slot.water",
							"tag @s add stay"
						]
					},
					{
						"name": "火属性へ",
						"commands": [
							"dialogue open @s @initiator magic_slot_4_fire",
							"event entity @s asa:magic_slot.fire",
							"tag @s add stay"
						]
					}
				],
				"on_close_commands": [ "event entity @s[tag=!stay] asa:despawn" ]
			}
		]
	}
}